<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>{$System_namex}</title>
</head>
<link href="__PUBLIC__/Css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Base.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/prototype.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/mootools.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Ajax/ThinkAjax.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Form/CheckForm.js\"></sc"+"ript>")</script>
<script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/common.js\"></sc"+"ript>")</script>
<body>
<!--处理图片全屏显示-->
<div class="bgallimg">
 <!-- <img  src="__PUBLIC__/Images/adminlogo.png" width="100%" height="100%"/>-->
  <form method='post' name="login" id="form1" onsubmit="return false">
   <div class="margin">
      <!--LOGO位置-->
    <div class="bglogo"><!--<img src="__PUBLIC__/Images/logowhite.png" width="500px" height="100px"/>--><!--<a>亞太金融互助社區</a>--></div>  
    <!--登录框的圆角设置-->
     <div class="login">
      <!--登录的内容-->
      <div class="login_list">
        <!--项目名称位置-->
        <div class="sy_name">登录系统</div>
        <!--用户名-->
        <div class="name"><a>登录名：</a><input name="account" id="account" type="text" tabindex="1" size="22" class="txtusername" placeholder="用戶名"></div>
        <!--密码-->
        <div class="pwd"><a>密&nbsp;&nbsp;&nbsp;码：</a><input name="password" id="password" type="password" tabindex="2" size="22" class="txtpwd" placeholder="密碼"></div>
        <!--验证码-->
        <div class="img">
        <a>验证码：</a><input name="verify" id="verify" type="text" onKeyDown="keydown(event)" check="Require" warning="请输入验证码" tabindex="3" maxlength="6" size="6" class="txtyanz" placeholder="驗證碼">
        <input type="hidden" name="ajax" value="1">
        <img id="verifyImg" src="__URL__/verify/" width="56"  height="26" onClick="fleshVerify()" border="0" alt="点击刷新验证码" style="cursor:pointer;" align="absmiddle" />
        </div>
       <!--登录按钮-->
       <div class="btn">
         <input type="submit" name="imageField" class="loginimg" onmouseover="this.style.cursor='hand'" onmouseout="this.style.cursor='hand'" value="登 录" onClick="ThinkAjax.sendForm('form1','__URL__/checkLogin/',loginHandle,'result')">
       </div>
       <!--免费注册-->
       <div class="txtzhuce"><input  name="button" type="submit"   id="btn_submit" class="button" value="免费注册"  size="24" onclick="location.href='__APP__/Reg/us_reg'"></div>
       <!--忘记密码-->
       <div style="display:none" class="forgetpwd"><input  name="button" type="submit"   id="btn_submit" class="button" value="忘记密码"   size="24" onclick="location.href='__APP__/Reg/find_pw/'"></div>
       <!--错误提示-->
       <div class="error"><span id="result"></span></div>
      <!--登录的内容-->
      </div>
    <!--登录框的圆角设置-->
    </div>
    <!--页脚内容-->
    <!--<div class="footer">2222222222</div>-->
   </div>
    </form>
<!--处理图片全屏显示-->
</div>
</body>
</html>
<script language="JavaScript">
<!--
var PUBLIC	 =	 '__PUBLIC__';
ThinkAjax.image = [	 '__PUBLIC__/Images/loading2.gif', '__PUBLIC__/Images/ok.gif','__PUBLIC__/Images/update.gif' ]
ThinkAjax.updateTip	=	'登录中～';
function loginHandle(data,status){
if (status==1)
{
$('result').outerHTML	=	'<span style="color:blue"><img SRC="__PUBLIC__/Images/ok.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle" > 登录成功！3 秒后跳转～</span>';
$('form1').reset();
window.location = '__URL__';
}else{
fleshVerify();
}
}
function keydown(e){
	var e = e || event;
	if (e.keyCode==13)
	{
	ThinkAjax.sendForm('form1','__URL__/checkLogin/',loginHandle,'result');
	}
}
function fleshVerify(type){
//重载验证码
var timenow = new Date().getTime();
if (type)
{
$('verifyImg').src= '__URL__/verify/adv/1/'+timenow;
}else{
$('verifyImg').src= '__URL__/verify/'+timenow;
}

}
function checkRadio(){
	alert('您不是该地区的ID');
	window.location = '__URL__/login';
}

//-->
</script>
